package com.emode.entity;

import java.util.HashSet;
import java.util.Set;

public class SysGroup implements java.io.Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -1159315799277407885L;
	private Integer groupid;	//用户组 自增长id
	private String groupName;	//名称
	private Integer usernum;	//用户组人数
	private String description;	//描述
	
	private SysPrivilege privis;
	private Set<SysPrivilege> privilege = new HashSet<SysPrivilege>();
	private Set<Bbsusers> users = new HashSet<Bbsusers>();
	
	public SysGroup() {
		super();
	}
	public SysGroup(Integer groupid, String groupName, Integer usernum,
			String description, SysPrivilege privis,
			Set<SysPrivilege> privilege, Set<Bbsusers> users) {
		super();
		this.groupid = groupid;
		this.groupName = groupName;
		this.usernum = usernum;
		this.description = description;
		this.privis = privis;
		this.privilege = privilege;
		this.users = users;
	}
	public Integer getGroupid() {
		return groupid;
	}
	public void setGroupid(Integer groupid) {
		this.groupid = groupid;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	public Integer getUsernum() {
		return usernum;
	}
	public void setUsernum(Integer usernum) {
		this.usernum = usernum;
	}
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	public Set<SysPrivilege> getPrivilege() {
		return privilege;
	}
	public void setPrivilege(Set<SysPrivilege> privilege) {
		this.privilege = privilege;
	}
	public Set<Bbsusers> getUsers() {
		return users;
	}
	public void setUsers(Set<Bbsusers> users) {
		this.users = users;
	}
	public SysPrivilege getPrivis() {
		return privis;
	}
	public void setPrivis(SysPrivilege privis) {
		this.privis = privis;
	}
}
